package news.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.catalina.User;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel
public class News implements Serializable {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("新闻标题")
    private String title;
    @ApiModelProperty("新闻摘要")
    private String summary;
    @ApiModelProperty("新闻图片")
    private String picture;
    @ApiModelProperty("新闻内容")
    private String content;
    @ApiModelProperty("新闻类型")
    private NewsType newsType;
    @ApiModelProperty("新闻状态")
    private Integer status;
    private Admin admin;
    @ApiModelProperty("新闻发布日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;
    private Integer pageNum;
    private Integer pageSize;
    private Integer typeId;
    private List<Comment> comments;
    private Integer dzCount;
    private Integer scCount;

}
